package com.doupi.partner.service;

import com.doupi.partner.dal.model.Administrator;
import com.doupi.partner.service.dto.AdministratorDto;
import com.doupi.partner.util.Pagination;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface AdministratorService {
	int deleteByPrimaryKey(Long id);

	int insert(Administrator record);

	Administrator selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Administrator record);

	int countAdministrator(Administrator administrator);

	List<Administrator> queryAdministrators(Administrator administrator, RowBounds rowBounds);

	Administrator selectAdministratorForUpdateByPrimaryKey(Long id);

	Pagination<Administrator, Administrator> queryAdministrators(Pagination<Administrator, Administrator> pagination);

	Administrator login(String mobile, String password);

	Administrator selectByMobile(String mobile);

	void saveAdministrator(AdministratorDto administratorDto);

	int updateAdministratorNameAndMobile(Long id, String name, String mobile);
}
